/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author FIRE
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PuOrderChgLog extends BasicModel<PuOrderChgLog> {
  orderId?: string; // 订单ID
  orderCode?: string; // 订单号
  orderVersion?: string; // 订单版本
  comfirmBy?: string; // 确认人ID
  comfirmByName?: string; // 确认人
  comfirmDate?: string; // 确认日期
  bauto?: string; // 自动
}

export const puOrderChgLogList = (params?: PuOrderChgLog | any) =>
  defHttp.get<PuOrderChgLog>({ url: adminPath + '/srm/puorder/chg/puOrderChgLog/list', params });

export const puOrderChgLogListData = (params?: PuOrderChgLog | any) =>
  defHttp.post<Page<PuOrderChgLog>>({ url: adminPath + '/srm/puorder/chg/puOrderChgLog/listData', params });

export const puOrderChgLogForm = (params?: PuOrderChgLog | any) =>
  defHttp.get<PuOrderChgLog>({ url: adminPath + '/srm/puorder/chg/puOrderChgLog/form', params });

export const puOrderChgLogSave = (params?: any, data?: PuOrderChgLog | any) =>
  defHttp.postJson<PuOrderChgLog>({ url: adminPath + '/srm/puorder/chg/puOrderChgLog/save', params, data });

export const puOrderChgLogDelete = (params?: PuOrderChgLog | any) =>
  defHttp.get<PuOrderChgLog>({ url: adminPath + '/srm/puorder/chg/puOrderChgLog/delete', params });
